Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / CellStyleCommand Class / Apply Method / Apply(IWorksheet,Reference[],BuiltInStyle) Method
The worksheet which this command attached to.
The GrapeCity.Spreadsheet.Reference array represents the ranges of cells will be applied.
The style is to apply to the specified ranges.


In This Topic
    Apply(IWorksheet,Reference[],BuiltInStyle) Method
    In This Topic
    Gets the command that apply the specified style to cell(s).
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Apply( _
       ByVal worksheet As IWorksheet, _
       ByVal ranges() As Reference, _
       ByVal style As BuiltInStyle _
    ) As CellStyleCommand
    'Usage
     
    
    Dim worksheet As IWorksheet
    Dim ranges() As Reference
    Dim style As BuiltInStyle
    Dim value As CellStyleCommand
     
    value = CellStyleCommand.Apply(worksheet, ranges, style)

    Parameters

    worksheet
    The worksheet which this command attached to.
    ranges
    The GrapeCity.Spreadsheet.Reference array represents the ranges of cells will be applied.
    style
    The style is to apply to the specified ranges.
    See Also